package com.cyf.db.mapper.smartCity;

import com.cyf.db.bean.LocalFeeFlow;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface LocalFeeFlowMapper {

    @Select("select feeGroupId, SUM(Paid) + SUM(wechatfee) Paid from local_feeflow " +
            "where parkingId = #{parkingId} and type = 2 and time_type = 1 and time_key = #{timeKey} " +
            "GROUP BY feeGroupId")
    List<LocalFeeFlow> sumActualFeeAndWechatFeeByTimeKey(@Param("timeKey") Integer timeKey,
                                                         @Param("parkingId") Integer parkingId);
}
